package com.lkx.service;

import com.lkx.domain.SeckillDO;
import com.lkx.utils.R;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author likaixuan
 * @email 934268568@qq.com
 * @date 2018-08-30 14:58:39
 */
public interface SeckillService {

	int getSeckillCount(Long seckillId);

	int getSeckillOrderCount(Long seckillId);

	R startSeckill(Long seckillId, Long userId);

	R startSeckillRedis(Long seckillId, Long userId);

	SeckillDO get(Long id);
	
	List<SeckillDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(SeckillDO seckill);
	
	int update(SeckillDO seckill);

	int resetNum(int num, Long seckillId);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
}
